package com.sdemo.modules.sys.service;

import java.util.List;
import java.util.Map;

import com.sdemo.modules.sys.model.User;

public interface UserService {
	
	User queryUser(User user);
	
	User queryUserByUsername(String username);
	
	User queryUserById(Long userId);
	
	List<User> queryPageUser(Map<String,Object> parms);
	
	List<User> queryPageRole(Map<String,Object> parms);
	
	int queryCount(Map<String,Object> parms);
	
	int updateUser(User user);
	
	int deleteUser(Long userId);
	
	int insertUserByUsername(User user);
	
	int insertUserRoleBath(List<User> list);
	
	int deleteUserRole(Long userId);
}
